package com.szrt.java.day20161222.wu.t02;

import java.util.Scanner;

public class Student {
	public static void main(String[] args) {
		//声明扫描器，并监控键盘输入流
		Scanner sc = new Scanner(System.in);
		
		String name;
		char sex;
		float score;
		
		System.out.println("请输入姓名：");
		name = sc.next();
		
		System.out.println("请输入性别：");
		sex = sc.next().charAt(0);
		
		System.out.println("请输入你的考试成绩：");
		score = sc.nextFloat();
		
		System.out.println("学生的详细信息为：");
		System.out.println(name +"    性别："+sex+"    考试成绩："+score);
	}

}
